package repository;

import java.sql.*;

public class DataBase
{
    public Connection connection;

    public DataBase() throws Exception
    {
        connect();
    }

    public void connect() throws Exception
    {
     String driver="sun.jdbc.odbc.JdbcOdbcDriver";
     String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=D:\\PostSent.mdb;}";
     Class.forName(driver);
     connection = DriverManager.getConnection(url);
    }
}
